#被动技能【生命汲取】
#execute as @a[tag=mieshang,scores={Stone_sword0=1..}] at @s run function nw:yingxiong/2yingxiong/02mieshang/skill/0xiqu
#被动技能【自愈】
effect give @a[tag=mieshang] minecraft:hunger 2 19 true
clear @a[tag=mieshang] bread
execute as @a[tag=mieshang,scores={skFood=..16}] run effect give @s regeneration 2 3
execute as @a[tag=mieshang,scores={skFood=..16}] run effect give @s saturation 1 1 true
execute as @a[tag=mieshang,scores={skCDPlayer=8..,skHealth=..12}] if data entity @s {SelectedItem:{id:"minecraft:stone_sword"}} run effect give @s regeneration 5 1
execute as @a[tag=mieshang,scores={skCDPlayer=8..,skHealth=..12}] if data entity @s {SelectedItem:{id:"minecraft:stone_sword"}} run scoreboard players set @s skCDPlayer 0
# execute as @a[tag=mieshang,scores={skHealth=..4}] run effect give @s saturation 2 4

#主动技能【穿心魔牙】
execute as @a[tag=mieshang,scores={skEgg=1..}] at @s run function nw:yingxiong/2yingxiong/02mieshang/skill/1jianya
#主动技能【穿心魔牙】CD
execute as @a[tag=mieshang,scores={skCDEgg=0}] at @s run function nw:yingxiong/2yingxiong/02mieshang/skill/1jianya_cd

#主动技能【斩首之刃】
execute as @a[tag=mieshang,scores={Diamond_sword1=1..}] at @s run function nw:yingxiong/2yingxiong/02mieshang/skill/2zhanshaji
#主动技能【斩首之刃】CD
execute as @a[tag=mieshang,scores={skCDJPG=0}] at @s run function nw:yingxiong/2yingxiong/02mieshang/skill/2zhanshaji_cd

#主动技能【魔裂千世】
execute as @a[tag=mieshang,scores={skEXBottle=1..}] at @s run function nw:yingxiong/2yingxiong/02mieshang/skill/3zhanshaji
#主动技能【魔裂千世】CD
execute as @a[tag=mieshang,scores={skCDEXBottle=0}] at @s run function nw:yingxiong/2yingxiong/02mieshang/skill/3zhanshaji_cd
#主动技能【魔裂千世】特效
execute as @a[tag=mieshang,nbt={ActiveEffects:[{Id:20b}]}] at @s run particle damage_indicator ~ ~0.5 ~ 0.1 0.1 0.1 0.01 1 normal @a

#B02灭殇（旧时代的恶魔）生命值高于12
execute as @a[tag=mieshang,scores={skHealth=13..}] run title @s actionbar [{"text":"穿心魔牙","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEgg","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 斩首之刃","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDJPG","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 魔裂千世","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEXBottle","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
#B02灭殇（旧时代的恶魔）生命值低于12
execute as @a[tag=mieshang,scores={skHealth=..12}] run title @s actionbar [{"text":"自愈：","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDPlayer","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"/","color":"dark_red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"8","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 穿心魔牙","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEgg","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 斩首之刃","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDJPG","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 魔裂千世","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEXBottle","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
